#include <iostream>

using namespace std;
template <typename t,typename t1> t srednee(t x[],t1 n)
{
t num=0;

for (int i=0;i<n;i++)
{
num+=x[i];
}
num/n;
return  num;
}
void main()
{
const  int n=6;
float mas[n]={0.8, 0.5, 0.6, 0.3, 0.6, 0.1};
int mas1[n]={4,5,6,7,9,0};
double mas2[n]={5.89, 6.75, 31.63, 6.37, 2.66, 6.13};
cout<<"srednee masiva1 = "<<srednee(mas1,n)<<"\n";

cout<<"srednee masiva = "<<srednee(mas,n)<<"\n";

cout<<"srednee masiva2 = "<<srednee(mas2,n)<<"\n";
}
